
#include "mine.h"
#include "gamemanager.h"
#include "resourcemanager.h"

#define __super		Tower

Mine::Mine( const Point& pos ) : __super(pos)
{
	type = TowerType::castle;
}

Mine::~Mine()
{
	if(sprite) {
		sprite->removeFromParent();
	}
}

void Mine::init()
{
	sprite = CREATE_SPRITE("textures/entities/gold_mine.png");
	sprite->setAnchorPoint(Point(0.5f, 0.0f));
	sprite->setPosition(SCALE_PT(position));
}

bool Mine::update( float ticks )
{
	// TODO: create soldiers
	return true;
}
